Dear All,
I have an excel file, in one sheet, it has four columns : ID (character type), DATE (character type), PRODUCT (character type) and SALES (numeric type). The data in this sheet is on ID, DATE and PRODUCT level (select ID, DATE, PRODUCT, sum(SALES)
as SALES from xx group by ID, DATE, PRODUCT). Then I created a PivotTable for this tab, I drag the DATE to "Row Labels", PRODUCT to "Column Labels", ID to "Values" then get "Count of ID" and SALES to "Values"
then get "Sum of SALES".
Now I want another filed : Total Sales / Number of unique ID in each DATE and PRODUCT group, so I added a calculated filed, the formula is SUM(SALES) / COUNT(ID), but the values are the same as the "Sum of SALES". The Excel 2007 calculated the
COUNT(ID) as 1.
Could somebody help to solve this problem ? Thank you very much in advanced.
Best Regards,
Sniperhgy
-
Edited by
sniperhgy
Tuesday, May 26, 2015 6:54 AM
-
Moved by
Lanlan HuangMicrosoft contingent staff
4 hours 9 minutes ago